package com.soxing.braindata.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author durango
 * @since 2022-07-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "FileChunkInfo对象", description = "")
public class FileChunkInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "当前文件块，从1开始", required = true)
    private Integer chunkNumber;

    @ApiModelProperty(value = "每块大小", required = true)
    private Integer chunkSize;

    @ApiModelProperty(value = "当前分块大小", required = true)
    private Integer currentChunkSize;

    @ApiModelProperty(value = "文件md5标识", required = true)
    private String identifier;

    @ApiModelProperty(value = "文件名")
    private String fileName;

    @ApiModelProperty(value = "文件路径")
    private String filePath;

    @ApiModelProperty(value = "总块数", required = true)
    private Integer totalChunks;

    @ApiModelProperty(value = "总大小", required = true)
    private Long totalSize;


}
